*****************************************************
* Mexico Pollfish Survey            				*
* E1 Survey Experiment      				        *
* Ana López García, Sarah Berens & Barry Maydom 	*
* July 2023                                         *
* 		                            				*
* BALANCE TESTS                                     *
* Pollfish Mexico Survey Dec 31-Jan2nd 21/22        *
*****************************************************

*CHECK - Set directory 

use "Data\Data ready E1.dta", clear 


***************************
*2. BALANCE TESTS 

*Describing the experiment (table of means and frequencies)

tabulate E1_vign1 E1_vign2, summarize(E1_pay_taxes)


***************************************************************************
*Balance tests - Tax instrument manipulation 
preserve 

iebaltab E1_pay_taxes migrant female age_groups1 age_groups2 age_groups3 age_groups4 age_groups5 edlevel1 /// 
	edlevel2 edlevel3 edlevel4 college_higher income_cat1 income_cat2 income_cat3 employed, grpvar(E1_vign1) ///
	browse starl(0.05 0.010 0.001) rowvarlabels 

*To see type edit 
edit 

***************************************************************************
*Balance tests - Tax earmarking manipulation 
restore 

preserve

iebaltab E1_pay_taxes migrant female age_groups1 age_groups2 age_groups3 age_groups4 age_groups5 edlevel1 ///
	edlevel2 edlevel3 edlevel4 college_higher income_cat1 income_cat2 income_cat3 employed, grpvar(E1_vign2) ///
	browse starl(0.05 0.010 0.001) rowvarlabels 

*To see type edit 
edit 

***************************************************************************
*Balance tests - Migrants vs nonmigrants 
restore 

preserve

iebaltab female age_groups1 age_groups2 age_groups3 age_groups4 age_groups5 edlevel1 ///
	edlevel2 edlevel3 edlevel4 college_higher income_cat1 income_cat2 income_cat3 employed, grpvar(migrant) ///
	browse starl(0.05 0.010 0.001) rowvarlabels 

*To see type edit 
edit 

restore 
